home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM42.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  883b  |  19 lines

  1.    #include "window.h"
  2.    #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)  /* define  video
  3.                                                           attribute */
  4.    #define BLUEONBLACK  CREATE_VIDEO_ATTRIBUTE(black,blue)  /* define
  5.                                                            video attribute */
  6.    main()
  7.    {
  8.      WPOINTER w;             /* pointer to a window structure */
  9.      WindowInitializeSystem();     /* system initialization function */
  10.      WindowSaveInitial(0);
  11.      w = WindowInitialize(BORDER,1,1,30,15,BLUEONBLACK,NORM,SINGLEBOX);
  12.      WindowOpen(w);              /* display window on the screen */
  13.      WindowWriteString(w,"Press a key to move me",1,1);
  14.      WindowDisplay(w,1,NOEFFECT);
  15.      GET_KEY();
  16.      WindowMove(w,12,14);       /* move the window to row 12, column 14 of the
  17.                                 screen */
  18.    }
  19.